import { defineBoot } from '#q-app/wrappers'
import { setCssVar } from 'quasar'

export default defineBoot(({ app }) => {
  const localColor = localStorage.getItem('primary') || '#1976D2'
  setCssVar('primary', localColor)

  const $q = app.config.globalProperties.$q
  const localDark = localStorage.getItem('dark') ?? $q.dark.mode
  $q.dark.set(localDark === true || localDark === 'true')
})

//export { axios, api }
